package com.gaoding.shared.dict.dto.request;

import com.gaoding.commons.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author mobai
 * @since 2021/2/1 16:15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("多语言更新参数实体")
public class UpdateDictLanguageDTO extends BaseDto {

    @ApiModelProperty("主键")
    @NotNull(message = "更新必须传递id")
    @Min(value = 1,message = "id只能是>=0")
    private Long id;


    @ApiModelProperty("语言编码")
    @NotEmpty(message = "语言编码")
    private String languageCode;


    @ApiModelProperty("语言名称")
    private String languageName;
}
